home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / schelptreemodel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-07-01  |  1.6 KB  |  50 lines

  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved.
  4. **
  5. ** This file is part of the example classes of the Qt Toolkit.
  6. **
  7. ** This file may be used under the terms of the GNU General Public
  8. ** License version 2.0 as published by the Free Software Foundation
  9. ** and appearing in the file LICENSE.GPL included in the packaging of
  10. ** this file.  Please review the following information to ensure GNU
  11. ** General Public Licensing requirements will be met:
  12. ** http://www.trolltech.com/products/qt/opensource.html
  13. **
  14. ** If you are unsure which license is appropriate for your use, please
  15. ** review the following information:
  16. ** http://www.trolltech.com/products/qt/licensing.html or contact the
  17. ** sales department at sales@trolltech.com.
  18. **
  19. ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. **
  22. ****************************************************************************/
  23.  
  24. #ifndef SCHELP_TREEMODEL_H
  25. #define SCHELP_TREEMODEL_H
  26.  
  27. #include <QAbstractItemModel>
  28. #include <QModelIndex>
  29. #include <QVariant>
  30.  
  31. #include "./tt/simpletreemodel/treemodel.h"
  32.  
  33.  
  34. class ScHelpTreeModel : public TreeModel
  35. {
  36.     Q_OBJECT
  37.  
  38. public:
  39.     ScHelpTreeModel(const QString &dataFile, const QString &col1name, const QString &col2name, QMap<QString, QString>* indexToBuild, QObject *parent = 0);
  40.     ~ScHelpTreeModel() {};
  41.  
  42.     void addRow(const QString&, const QString&, int i);
  43.  
  44. private:
  45.     void setupModelData(const QString &dataFile, TreeItem *parent, QMap<QString, QString>* indexToBuild);
  46.  
  47. };
  48.  
  49. #endif
  50.